#!/usr/bin/env python

from dict.desease_dict import deseases
from dict.drugs_dict import drugs
from dict.cell_dict import cells
from dict.bacteria_dict import bacterias
from dict.enzime_dict import enzime
from dict.fungi_dict import fungis
from dict.scince_dict import scince
from dict.virus_dict import virus
from dict.human_part_dict import humans_part
from dict.measure_dict import measures
from dict.operation_dict import operations
from str_analyzer import StrAnalyzer
import time

__author__ = 'gogo'

__version__ = '0.0.1'

# driver = webdriver.Firefox()

start_time = time.time()

sa = StrAnalyzer()
cnt = 0


all_dict = [bacterias, cells, deseases, drugs,
            enzime, fungis, humans_part, measures,
            operations, scince, virus
]


for my_dict in all_dict:
    for q in my_dict:
        print q, sa.detect_object(q)
        cnt += 1
# driver.close()

end_time = time.time()

print cnt, end_time - start_time